import { IApi } from 'dumi';
import MonacoWebpackPlugin from "monaco-editor-webpack-plugin";

export default (api: IApi) => {
    api.chainWebpack(( memo, { webpack, env}) => {
        // set alias
        memo.plugin('monaco').use(new MonacoWebpackPlugin());
    })
};

